import { defineStore } from "pinia";
import { reactive } from 'vue'
import persist  from 'pinia-plugin-persistedstate'

export const useUserStore = defineStore('user',() =>{
    const userInfo = reactive({
        id:0,
        username:'',
        role:'',
        academy_name:'',
        subjectid:[]
    })

    return{
        userInfo
    }
},
{
    persist: true
})